    <?php
    foreach ($messages as $message) :
    ?>
        <tr>
            <td>
            <?php if ($message->share == 'anonim'): ?>
                <div class="anonim">
                    Anonim
                </div>
            <?php else: ?>
                    <div class="name">
                        <b>Name:</b> <?= $message->name ?>
                    </div>        
            <?php endif; ?>
                </td>
                <td>
                    <div class="total"><b>Total People Praied:</b> <?= $message->nr ?></div>
                </td>
                <td>
                    <div class="pray"><div class="button-pray" onclick="pray(<?= $message->id ?>)">PRAY</div></div>
                </td>
            </tr>
            <tr>
                <td colspan="3">
                    <div class="message"><?= $message->message ?></div>
                </td>
            </tr>
            <tr>
                <td colspan="3"><div class="date"><b>Date:</b><?= date('d.m.Y', strtotime($message->dt)) ?></div></td>
            </tr>
    <?php
                    endforeach;
    ?>
{elapsed_time}
